package cn.highset.modules.base.entity;

import cn.highset.base.HighsetBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.SQLDeleteAll;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Victor
 */
@Data
@Entity
@Table(name = "t_vote_item")
@TableName("t_vote_item")
@SQLDelete(sql = "update t_vote_item set del_flag= 1 where id =?")
@SQLDeleteAll(sql = "update t_vote_item set del_flag= 1 where id =?")
@Where(clause = "del_flag=0")
@ApiModel(value = "投票活动明细")
public class VoteItem extends HighsetBaseEntity {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "活动id")
    private String voteId;

    @ApiModelProperty(value = "研发单位")
    private String developUnit;

    @ApiModelProperty(value = "展位号")
    private String standNo;
    @ApiModelProperty(value = "设备名称")
    private String equipmentName;
    @ApiModelProperty(value = "设备图片")
    private String imageUrl;

    @ApiModelProperty(value = "投票数量")
    private Integer praiseCount = 0;

}
